/********************************************************************************
* File Name:	welcomeAdmin.h
* Description:	第10章实例训练          
* Reference book:《Linux环境下Qt4图形界面与MySQL编程》，机械工业出版社.2012.1  
* E_mail: openlinux2011@gmail.com		                
*
********************************************************************************/
#ifndef WELCOMEADMIN_H
#define WELCOMEADMIN_H
#include <QSqlTableModel>
#include <QSqlRelationalTableModel>
#include <QMessageBox>
#include <QSqlError>
#include <QString>
#include "ui_welcomeAdmin.h"
#include <QSqlDatabase>
#include <QSqlQuery>
//管理员登录界面类
class WelcomeAdmin : public QDialog,public Ui_WelcomeAdmin
{
    Q_OBJECT
private:
    QSqlRelationalTableModel *adminAddUserModel;
    QSqlTableModel *adminAddCardModel;
    void submit();
public:
    WelcomeAdmin(QWidget* parent = 0 );
private slots: //槽函数
    void submitStuButton_clicked();
    void pbDelete_clicked();
    void pbSubmit_clicked();
    void pbSearch_clicked();
    void pbInputMoney_clicked();
};
#endif // WELCOMEADMIN_H
